package kr.hkit.powerjava.algorithm;

public class Item {
	
	private String data;
	private Item link;
	
	public Item(String data) {
		this.data = data;
	}
	
	public String getData() {
		return data;
	}
	public void setData(String data) {
		this.data = data;
	}
	public Item getLink() {
		return link;
	}
	public void setLink(Item link) {
		this.link = link;
	}

	@Override
	public String toString() {
		return String.format("Item [data=%s, link=%s]", data, link);
	}
}
